package com.probox.activity.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import com.probox.common.core.utils.money.PriceFormatUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("帮砍记录")
public class ActivityJoinHelpVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long helpUid;

    /** 砍价发起ID */
    @Excel(name = "砍价发起ID")
    @ApiModelProperty(value = "砍价发起ID(砍价发起ID)")
    private Long joinUid;

    /** 砍价金额 */
    @Excel(name = "砍价金额")
    @ApiModelProperty(value = "砍价金额(砍价金额)")
    private Long bargainAmount;

    /** 帮砍人ID */
    @Excel(name = "帮砍人ID")
    @ApiModelProperty(value = "帮砍人ID(帮砍人ID)")
    private Long customerUid;

    /** 帮砍人账号 */
    @Excel(name = "帮砍人账号")
    @ApiModelProperty(value = "帮砍人账号(帮砍人账号)")
    private String customerName;

    /** 帮砍人头像 */
    @Excel(name = "帮砍人头像")
    @ApiModelProperty(value = "帮砍人头像(帮砍人头像)")
    private String customerUrl;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "帮砍人头像" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "帮砍人头像($column.readConverterExp())")
    private Date createTime;

    /** 砍价描述 */
    @Excel(name = "砍价描述")
    @ApiModelProperty(value = "砍价描述(砍价描述)")
    private String title;

    public String getBargainAmountStr(){
        return PriceFormatUtil.format(bargainAmount);
    }

}
